﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AccesoDatos.DAO
{
    
    public class DAO_Base
    {
        static DAO_Base instance = null;
        static readonly protected object padlock = new object();

        public DAO_Base()
        {
        }

        public static DAO_Base Instance
        {
            get
            {
                if (instance == null)
                {
                    lock (padlock)
                    {
                        if (instance == null)
                        {
                            instance = new DAO_Base();
                        }
                    }
                }
                return instance;
            }
        }

    }
}
